package com.cnhis.cloudhealth.clinical.hosnurse.hoscharge.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
import com.cnhis.cloudhealth.commons.utils.Page;
@Repository
public class HoschargeDao extends BaseDao{
	public List search(Map map)throws Exception{
		return queryForList("HosCharge.search", map);
		
		
	}
	public int getWorkingMode()throws Exception{
		return (int) queryForExtObject("HosCharge.getWorkingMode", null);
		
		
	}
	public void HOPublic_VBX1_Update(Map map)throws Exception{
		insert("HosCharge.HOPublic_VBX1_Update", map);
	}
	
	public Map getBCE01C_BCE03C(String vaa07)throws Exception{
		return (Map) queryForExtObject("HosCharge.getBCE01C_BCE03C", vaa07);
		
	}
	  public int checkPatient9(long VAA07)throws Exception{
		  return (int) queryForExtObject("HosCharge.checkPatient9", VAA07);
	   }
	  public int checkPatient5(long VAA07)throws Exception{
		  return (int) queryForExtObject("HosCharge.checkPatient5", VAA07);
	   }
	  public int checkPatient4(long VAA07)throws Exception{
		  return (int) queryForExtObject("HosCharge.checkPatient4", VAA07);
	   }
	  public int checkParam()throws Exception{
		  return (int) queryForExtObject("HosCharge.checkParam", null);
	  }
	  public int checkPatient(Map map)throws Exception{
		  return (int) queryForExtObject("HosCharge.checkPatient", map);
	  }
	  public int checkParam1()throws Exception{
		  return (int) queryForExtObject("HosCharge.checkParam1", null);
	  }
	  public int checkPatient_VBU01(Map map)throws Exception{
		  return (int) queryForExtObject("HosCharge.checkPatient_VBU01", map);
	  }
	  public int checkBCE1(long BCE01A)throws Exception{
		  return (int) queryForExtObject("HosCharge.checkBCE1", BCE01A);
	  }
	  public int checkParam2()throws Exception{
		  return (int) queryForExtObject("HosCharge.checkParam2", null);
	  }
	  public int getABC14(String ABC02)throws Exception{
		  return (int) queryForExtObject("HosCharge.getABC14", ABC02);
	  }
	  public int checkParam3()throws Exception{
		  return (int) queryForExtObject("HosCharge.checkParam3", null);
	  }
	  public String getBBY08(long BBY01)throws Exception{
		  return (String) queryForExtObject("HosCharge.getBBY08", BBY01);
	  }
	  public List getDept(Map map)throws Exception{
		  return queryForList("HosCharge.getDept", map);
	  }
	  public List getTmpForMedicine(Map map)throws Exception{
		  return queryForList("HosCharge.getTmpForMedicine", map);
	  }
	  public Map getBCK01D_BCK01C_BCQ04B(long VAA07)throws Exception{
		  return (Map) queryForExtObject("HosCharge.getBCK01D_BCK01C_BCQ04B", VAA07);
		  
	  }
	  public Long getBCK01A(String BCQ04B)throws Exception{
		  return (Long) queryForExtObject("HosCharge.getBCK01A", BCQ04B);
	  }
	  public void insertVAI2(Map map)throws Exception{
		  insert("HosCharge.insertVAI2", map);
		  
		  
	  }
	  public int checkParam4()throws Exception{
		  return (int) queryForExtObject("HosCharge.checkParam4", null);
	  }
	  public int checkParam5()throws Exception{
		  return (int) queryForExtObject("HosCharge.checkParam5", null);
	  }
	   public void insertVAJT(Map map)throws Exception{
		   insert("HosCharge.insertVAJT", map);
	   }
	   public void insertVAJ2(Map map)throws Exception{
		   insert("HosCharge.insertVAJ2", map);
	   }
	   public int checkBGE1(Map map)throws Exception{
		   return (int) queryForExtObject("HosCharge.checkBGE1", map);
	   }
	   public void insertBGE1(Map map)throws Exception{
		   insert("HosCharge.insertBGE1", map);
	   }
	   public void updateBGE1(Map map)throws Exception{
		   insert("HosCharge.updateBGE1", map);
	   }
	   public void update_VAJ53(Map map)throws Exception{
		   update("HosCharge.update_VAJ53", map);
	   }
	   public void update_VAJ53_2(Map map)throws Exception{
		   update("HosCharge.update_VAJ53_2", map);
	   }
	   public void updateVCY1(Map map)throws Exception{
		   update("HosCharge.updateVCY1", map);
	   }
	   public int checkVBX1(Map map)throws Exception{
		   return (int) queryForExtObject("HosCharge.checkVBX1", map);
	   }
	   public int checkParam6()throws Exception{
		   return (int) queryForExtObject("HosCharge.checkParam6", null);
	   }
	   public int checkCAM1(Map map)throws Exception{
		   return (int) queryForExtObject("HosCharge.checkCAM1", map);
	   }
	   public long getCAM01(String VAO15)throws Exception{
		   return (int) queryForExtObject("HosCharge.getCAM01", VAO15);
		   
	   }
	   public long getBAK01(Long CAM01)throws Exception{
		   return (int) queryForExtObject("HosCharge.getBAK01", CAM01);
		   
	   }
	   public void insertVAO2(Map map)throws Exception{
		   insert("HosCharge.insertVAO2", map);
		   
	   }
	   public void insertVAO1(Map map)throws Exception{
		   insert("HosCharge.insertVAO1", map);
	   }
	   public int checkVAO2(Map map)throws Exception{
		   return (int) queryForExtObject("HosCharge.checkVAO2", map);
	   }
	   public void saveVAO2(Map map)throws Exception{
		   
		   insert("HosCharge.saveVAO2", map);
	   }
	   public void updateVAO2(Map map)throws Exception{
		   update("HosCharge.updateVAO2", map);
		   
	   }
	   public String gparam60()throws Exception{
		   return (String) queryForExtObject("HosCharge.gparam60", null);
	   }
	   public Page queryFeeDetail(Map map,int currPage,int pageSize)throws Exception{
		   return queryForPage("HosCharge.queryFeeDetail", map,currPage,pageSize);
	   }
	  
	   public List queryMedicinaItem(Map map)throws Exception{
		   return queryForList("HosCharge.queryMedicinaItem", map);
	   }
	   public List queryItemTree()throws Exception{
		   return queryForList("HosCharge.queryItemTree", null);
	   }
	   public int getBBY34(Map map)throws Exception{
		   
		   return (int) queryForExtObject("HosCharge.getBBY34", map);
	   }
	   
	   public List queryOtherFeeItem(Map map)throws Exception{
		   return queryForList("HosCharge.queryOtherFeeItem", map);
	   }
	   
	   public List queryTreatmentList()throws Exception{
		   
		   return queryForList("HosCharge.queryTreatmentList", null);
	   }
	   public List querypatientInfo(Map map)throws Exception{
		   return queryForList("HosCharge.querypatientInfo", map);
	   }
	   public String param406()throws Exception{
		   return (String) queryForExtObject("HosCharge.param406", null);
	   }
	   public Page queryMaterialItem(Map map,int currPage,int pageSize)throws Exception{
		   return queryForPage("HosCharge.queryMaterialItem", map, currPage, pageSize);
	   }
	   public Page queryItems(Map map,int currPage,int pageSize)throws Exception{
		   return queryForPage("HosCharge.queryItems", map, currPage, pageSize);
	   }
	   public List getDrugPrice(Map map)throws Exception{
		   return queryForList("HosCharge.getDrugPrice", map);
	   }
	   public List getItemExecDept(Map map)throws Exception{
		   return queryForList("HosCharge.getItemExecDept", map);
	   }
	   public int sysParams()throws Exception{
		   return (int) queryForExtObject("HosCharge.sysParams", null);
	   }
	   public int checkVIP(Map map)throws Exception{
		   return (int) queryForExtObject("HosCharge.checkVIP", map);
	   }
	   public int checkVAJ2(Map map)throws Exception{
		   return (int) queryForExtObject("HosCharge.checkVAJ2", map);
	   }
	   public List tmpNewVAJRecmp(Map map)throws Exception{
		   return queryForList("HosCharge.tmpNewVAJRecmp", map);
	   }
	   public String getOABC02(Map map)throws Exception{
		   return (String) queryForExtObject("HosCharge.getOABC02", map);
	   }
	   public int checkBCR1(Map m)throws Exception{
		   return (int) queryForExtObject("HosCharge.checkBCR1", m);
	   }
	   public double getVAJ32(Map map)throws Exception{
		   return (double) queryForExtObject("HosCharge.getVAJ32", map);
	   }
	   public List getTmpVAJRecmpEd1(Map map)throws Exception{
		   return queryForList("HosCharge.getTmpVAJRecmpEd1", map);
	   }
       public List getTmpVAJRecmpEd2(Map map)throws Exception{
    	   return queryForList("HosCharge.getTmpVAJRecmpEd2", map);
	   }
       public void updateVAE1_VAJ2_VAA1(Map map)throws Exception{
    	   update("HosCharge.updateVAE1_VAJ2_VAA1", map);
       }
       public void HORate_ZAE1_Update(Map map)throws Exception{
    	   update("HosCharge.HORate_ZAE1_Update", map);
       }
       public String getSubRate(Map map)throws Exception{
    	   return (String) queryForExtObject("HosCharge.getSubRate", map);
       }
       public void update_VAJ2(Map map)throws Exception{
    	   update("HosCharge.update_VAJ2", map);
       }
       public List tmpVAJAChange(Map map)throws Exception{
    	   return queryForList("HosCharge.tmpVAJAChange", map);
       }
       public void insertVAJA(Map map)throws Exception{
    	   insert("HosCharge.insertVAJA", map);
       }
       public int checkIAR1(Map map)throws Exception{
    	   return (int) queryForExtObject("HosCharge.checkIAR1", map);
       }
       public int checkIAJ1()throws Exception{
    	   return (int) queryForExtObject("HosCharge.checkIAJ1", null);
       }
       public String getIAJ05()throws Exception{
    	   return (String) queryForExtObject("HosCharge.getIAJ05", null);
       }
       public int checkVAJ2Cout(Map map)throws Exception{
    	   return (int) queryForExtObject("HosCharge.checkVAJ2Cout", null);
       }
       public List tmpVAJ1(Map map)throws Exception{
    	   return queryForList("HosCharge.tmpVAJ1", map);
       }
       public List tmpVAI1(Map map)throws Exception{
    	   return queryForList("HosCharge.tmpVAI1", map);
       }
       public List tmpNewVAJ1(Map map)throws Exception{
    	   return queryForList("HosCharge.tmpNewVAJ1", map);
       }
       public int checkOut(Map map)throws Exception{
    	   return (int) queryForExtObject("HosCharge.checkOut", map);
       }
       public List tmpRemnantVAJ1(Map map)throws Exception{
    	   return queryForList("HosCharge.tmpRemnantVAJ1", map);
       }
       public  List tmpRemnantVAJ12(Map map)throws Exception{
    	   return queryForList("HosCharge.tmpRemnantVAJ12", map);
       }
       
       
       
       public Page printPrompt(Map map,int currPage,int pageSize)throws Exception{
    	   return queryForPage("HosCharge.printPrompt", map, currPage, pageSize);
       }
       public Page dayList(Map map,int currPage,int pageSize)throws Exception{
    	   return queryForPage("HosCharge.dayList", map, currPage, pageSize);
       }
       
       public Page feeTotal(Map map,int currPage,int pageSize)throws Exception{
    	   return queryForPage("HosCharge.feeTotal", map, currPage, pageSize);
       }
}
